﻿#region Imports
using System;
using System.Windows.Forms;
using CommonUtilities.Enums;
using CommonUtilities.Info;
using CommonUtilities.Util;
#endregion

namespace BulkRenamer.App.Views
{
    partial class frmAbout : Form
    {
        #region Constructors
        public frmAbout()
        {
            InitializeComponent();

            Text = "About " + AppInfo.AssemblyTitle;
            lblProdName.Text = AppInfo.AssemblyProduct;
            lblVersion.Text = "Version " + AppInfo.AssemblyVersion;
            lblCopyright.Text = AppInfo.AssemblyCopyright;
            lnkCompanyName.Text = AppInfo.AssemblyCompany;
            tltipAbout.SetToolTip(lnkCompanyName, AppInfo.AuthorEmail);
            txtDescription.Text = AppInfo.AssemblyDescription;
        }
        #endregion

        #region Events
        private void btnOk_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void lnkCompanyName_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
                Utilities.OpenPath("mailto:" + AppInfo.AuthorEmail, eOpeningApp.Default);
        }

        private void lnkPreRequisites_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Utilities.OpenPath("http://msdn.microsoft.com/en-US/vstudio/hh487282.aspx", eOpeningApp.Default);
        }
        #endregion
    }
}
